﻿<%@ Page Title="" Language="C#" MasterPageFile="~/THDC.Master" AutoEventWireup="true" CodeBehind="TestThu.aspx.cs" Inherits="TracNghiemTinHocDaiCuong.TestThu" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Main" runat="server">
    
    <div id="message">
        <span style="color:blue">Thời gian còn lại: </span><br />
        <div>
            <asp:ScriptManager ID= "sm" runat="server"></asp:ScriptManager>
            <asp:Timer ID="timer1" runat="server" Interval="1000" OnTick="timer1_tick"></asp:Timer>
        </div>
        <div>
            <asp:UpdatePanel id="updPnl" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <asp:Label ID="lblTimer" Font-Size="XX-Large" runat="server" Font-Bold="true"></asp:Label>
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="timer1" EventName ="tick" />
                </Triggers>
            </asp:UpdatePanel>
        </div>
        <span style="color:blue">Các câu chưa làm: </span><br />
        <asp:Label ID="lblCauChuaLam" runat="server" Font-Bold="true"></asp:Label>
        <br /><span style="color:blue">Các câu đã làm: </span><br />
        <asp:Label ID="lblCauDaLam" runat="server" Font-Bold="true"></asp:Label>
    </div>
    <div class="deThi">
        <asp:ListView ID="lvTest" runat="server" OnPagePropertiesChanged="lvTest_PagePropertiesChanged">
            <LayoutTemplate>
                <div runat="server" id="itemPlaceHolder">
                    <div runat="server"></div>
                    <div runat="server"></div>
                    <div runat="server"></div>
                    <div runat="server"></div>
                    <div runat="server"></div>
                </div>
            </LayoutTemplate>
            <ItemTemplate>
                <div class="deBai">
                    <asp:LinkButton ID="lkbtnDeBai" runat="server" Font-Bold="true" >
                        Câu <%# Container.DataItemIndex + 1 %>:
                    </asp:LinkButton>
                    <asp:HiddenField ID="hdfSTT" runat="server" Value='<%# Container.DataItemIndex + 1 %>'/>
                    <asp:Label ID="lblDeBai" runat="server" Text='<%# Eval("NoiDung") %>'></asp:Label>
                    <asp:HiddenField ID="hdfMaCH" runat="server" Value='<%# Eval("MaCH") %>' />
                </div>
                <div class="dapAnA">
                    <asp:RadioButton ID="rdoDapAnA" GroupName="DapAn" runat="server" 
                    Text='<%# Eval("DapAnA") %>' />
                    <br />
                    <asp:RadioButton ID="rdoDapAnB" GroupName="DapAn" runat="server" 
                    Text='<%# Eval("DapAnB") %>' />
                    <br />
                    <asp:RadioButton ID="rdoDapAnC" GroupName="DapAn" runat="server" 
                    Text='<%# Eval("DapAnC") %>' />
                    <br />
                    <asp:RadioButton ID="rdoDapAnD" GroupName="DapAn" runat="server" 
                    Text='<%# Eval("DapAnD") %>' />
                </div>
                <br />
            </ItemTemplate>
        </asp:ListView>
        <asp:DataPager ID="dpTest" runat="server" PageSize="10" OnPreRender="dpTest_PreRender"
        PagedControlID="lvTest">
            <Fields>
                <asp:NumericPagerField ButtonCount="3" 
                CurrentPageLabelCssClass="CurrentPage"
                NumericButtonCssClass="PageNumbers"
                NextPreviousButtonCssClass="PageNumbers"
                NextPageText=" > "
                PreviousPageText=" < "/>
            </Fields>
        </asp:DataPager>
    </div>
    <div>
        <asp:Button ID="btnGui" runat="server" Text="Gửi" OnClick="btnGui_Click"/>
    </div>
</asp:Content>
